package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.project.classdata.Clazz;
import com.itheima.project.classdata.ClazzQueryParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClazzMapper {

    Page<Clazz> pageList(ClazzQueryParam eqp);

    void deleteClass(Integer id);

    void addClass(Clazz clazz);

    Clazz queryClassById(Integer id);

    void modifyClass(Clazz clazz);

    List<Clazz> queryAllClass();

    Integer count(Integer id);
}
